// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/index.js'
import axios from 'axios';


Vue.prototype.axios = axios;

// es6语法的转义
import 'babel-polyfill'

//fastclick 延迟300秒点击问题解决
import FastClick from 'fastclick';
FastClick.attach(document.body);

//加载部分文件
require ("./common/js/flexible.js");
require ("./common/css/flexible.css");
require ("./common/fonts/iconfont.css");
require ("./common/css/vue-swipe.css");


//文本格式化filter
import vfilters from "./common/js/filters";
Object.keys(vfilters).forEach((value)=>{Vue.filter(value,vfilters[value])});

// import jsonp from "./common/js/jsonp";
// console.log(jsonp);

import VueAwesomeSwiper from "vue-awesome-swiper";
Vue.use(VueAwesomeSwiper);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render:h => h(App)
})
